package com.zebraphp.devtool.httpUtils.NetOkHttp.responseHandler;

import java.io.File;

/**
 * 下载回调
 * Created by tsy on 16/8/16.
 */
public abstract class DownloadHandler {

    public void onStart(long totalBytes) {}

    public void onCancel() {}

    public abstract void onFinish(File downloadFile);

    public abstract void onProgress(long currentBytes, long totalBytes);

    public abstract void onFailure(String errorMsg);
}
